<?php
/**
 * Created by PhpStorm.
 * User: extraxue
 * Date: 2018/5/7
 * Time: 上午1:44
 */


session_start();
require_once ('pdo.php');
date_default_timezone_set('PRC');
$now_date = date('Y-m-d H:i:s');

$uid = $_GET['uid'];

$sqlNewsDelete="update news_info a set a.status= '0',a.change_time='{$now_date}' where a.uid='{$uid}'";
var_dump($sqlNewsDelete);
$pdo->exec($sqlNewsDelete);
echo "<script>alert('删除成功！');Location.href='newsReEdit.php';</script>";

